package com.sss.hloster0406;

public class English extends Student {
	int speech;// 演讲成绩

	

	public English(long stuNum, String stuName, int stuSex, int stuAge, int midExam, int finalExam,
			int speech) {
		super(stuNum, stuName, stuSex, stuAge, midExam, finalExam);
		this.speech = speech;
	}



	public float Totalscore() {// 计算总成绩
		return  (float) (speech * 0.5 + this.midExam * 0.25 + this.finalExam * 0.25);
		 
	}
}
